
function tijiao(cust_id,create_templets) {
	 document.getElementById('backMessage'+cust_id).innerHTML='<img src=/program/company/images/wait.gif>正在更新，请稍等...'; 	 
 	 jQuery.ajax({
		   type: 'POST',
		   url: '/program/admin/updateCustWeb/createHtml.jsp',
		   data: 'cust_id='+cust_id+'&create_templets='+create_templets+'&limit=1',
		   success: function(msg){
		   	 	 document.getElementById('backMessage'+cust_id).innerHTML=msg;
			 }
		});
}
 function searcher(){

   var start_attr=""; 
  if(document.getElementById("province").value!="")
  {
      start_attr = document.getElementById("province").value+"|"; 
  }

  if(document.getElementById("eparchy_code").value!="")
  {
      start_attr += document.getElementById("eparchy_code").value+"|"; 
  }

  if(document.getElementById("city_code").value!="")
  {
      start_attr += document.getElementById("city_code").value+"|"; 
  }
  
 
  document.getElementById("area_attr").value = start_attr;
  
	document.indexForm.submit();
}

function deletejs(cust_id) {
	 document.getElementById('backMessage'+cust_id).innerHTML='<img src=/program/company/images/wait.gif>正在关闭，请稍等...'; 	 
 	 jQuery.ajax({
		   type: 'POST',
		   url: '/program/admin/updateCustWeb/deleteHtml.jsp',
		   data: 'cust_id='+cust_id,
		   success: function(msg){
		   	 	 document.getElementById('backMessage'+cust_id).innerHTML=msg;
			 }
		});
}
	